home *** CD-ROM | disk | FTP | other *** search
/ AppleScript - The Beta Release / AppleScript - The Beta Release.iso / Development Tools / Sample Applications / MenuScripter 1.0d4.1 / MenuScripter Source / Read Me < prev   
Encoding:
Text File  |  1992-11-25  |  1.6 KB  |  24 lines  |  [ttro/ttxt]

  1. MenuScripter - Read Me
  2. ---------------------
  3.  
  4. MenuScripter is a derivation of 7Edit, a factored text editing sample code application. It has been designed to show how to use the features of the OSA from within your application. As the name implies, many of the menu commands are implemented using scripts instead of hard coding. In many cases the hard coding will also be found within SVAppleEvents.c, but it does not get called if a script to do the same is found.
  5.  
  6. Later these hard coded commands may go, but for now they provide a contrast between the two methods of implementation.
  7.  
  8. To use MenuScripter you must have Gustav 1.0b1 resident on your hard disk. MenuScripter will find and launch it as it starts.
  9.  
  10. Scripts are stored in two representations : 
  11. 'Scpt' - a compiled script extracted from the AppleScript component with OSAStore and saved as a resource.
  12.  
  13. 'SCPT' - a raw textual script.
  14.  
  15. Menu scripts are stored as resources with ID equal to theMenuID*32 + the item number within the menu. A script works for the whole menu if it has a resource id of 32*theMenuID.
  16.  
  17. MenuScripter does not only allow the use a scripts to drive menus, it also allows them to be edited. To edit the script for a menu simply hold control and option down as you select a menu item, and you will be presented with a dialog allowing editing of the script.
  18.  
  19. Due to the need for the AppleScript 1.0b1 release, MenuScripter is only available to the seed sites at this time. Please let us know of any problems that you may find in MenuScripter, as we want to ensure that it is a good as we can get it before general release.
  20.  
  21. Regards,
  22.  
  23. Nigel Humphreys,
  24. UK Macintosh Developer Technical Support.